package cn.electronic.sale.service.imp;

import org.springframework.stereotype.Service;

import cn.electronic.sale.pojo.Customer;
import cn.electronic.sale.service.CustomerService;
@Service
public class CustomerServiceImp extends BasicServiceImp implements CustomerService{
	
	public void addCustomer(Customer customer) throws Exception {
		customerMapper.insert(customer);
		
	}

	public Customer loginCustmer(Customer customer) throws Exception {
		return customerMapper.findCustomerLogin(customer);
	}

}
